Skip to content

Allow project name to come from X-IRI-Facility-Project header#91

Open
juztas wants to merge 7 commits into
doe-iri:mainfrom
juztas:iritokenamsc
Open

Allow project name to come from X-IRI-Facility-Project header#91
juztas wants to merge 7 commits into
doe-iri:mainfrom
juztas:iritokenamsc

Conversation

@juztas
Copy link
Copy Markdown
Contributor

@juztas juztas commented May 13, 2026

No description provided.

@juztas juztas changed the title Allow token to come via X-IRI-Facility-Project header Allow project name to come from X-IRI-Facility-Project header May 13, 2026
Copy link
Copy Markdown
Contributor

@pmrich pmrich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks fine to me at this point.

Comment thread app/routers/compute/compute.py Outdated
status_code=400,
detail="Project/account must be specified in exactly one place: job_spec.attributes.account or X-IRI-Facility-Project.",
)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this should be job_spec.attributes.account should override the header value. That should be documented.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review withdwawn. This behavior is fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants